<?php
include("tools/mysql.php");
db_connect();
?>
<?php
/*
$sql = "SELECT doc_id, to_id FROM document";
$re = db_query($sql);

$sql = "INSERT INTO doc_exam(doc_id, to_id, exam_time) VALUES";
$val = array();
foreach ($re as $v)
{
   $val[] = "(" . $v["doc_id"] . ", " . $v["to_id"] . ", NOW())";
}
$sql .= implode(",", $val);
$re = db_exec($sql);
if ($re) { echo "成功！"; }
else { echo "失败！"; }
*/

/*
$sql = "SELECT 1";
db_exec($sql);
 */
/*
$sql = "SELECT name, name_zh FROM menu ORDER BY menu_id ASC";
$re = db_query($sql);
$str = array();
$i = 1;
foreach ($re as $v)
{
   $str[] = "('" . $v["name"] . "', '" . $v["name_zh"] . "', " . $i . ")";
   $i ++;
}
$sql2 = "INSERT INTO `power`(`name`, `name_zh`, `value`) VALUES" . implode(",", $str);
$re2 = db_exec($sql2);
echo (!$re2) ? "失败！" : "成功！";
*/
?>
